<template>
  <div class="EMR">
    <div :class="noData" v-if="emptyData">
      <img :src="img" alt="" />
      <span>暂无数据</span>
    </div>
    <div class="content" v-if="haveData">
      <div class="title_">
        <span>EMR</span>
      </div>
      <div class="EMRContent">
        <div>
          <span class="title"></span>
          <span class="content_"></span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import api from '../../../api/synthesis/synthesis.js'
export default {
  name: "EMR",
  props: {
    filter: String,
  },
  watch: {
    filter: {
      handler(val, oldVal) {
      },
      deep: true,
      immediate: true,
    },
  },
  data() {
    return {
      img: require("../../../../images/Synthesis/icon-NoData.png"),
      noData:'noData',
      emptyData:true,
      haveData:false,
      EMRData:{},
    };
  },
  mounted(){
    let _this = this;
    window.Event.$on("menuLeft", val => {
      _this.menuLeft = val;
      if (_this.menuLeft != "menuDeaDolour") {
        _this.img = require("../../../../images/Synthesis/icon-NoData.png");
        _this.noData='noData';
      } else if (_this.menuLeft == "menuDeaDolour") {
        _this.img = require("../../../../images/Synthesis/icon-NoData1.png");
        _this.noData='noData1';
      }
    });
    // _this.menuLeft1 = _this.$store.state.menuLeft;
    _this.menuLeft1 = sessionStorage.getItem('menuLeft')
    if (_this.menuLeft1 != "menuDeaDolour") {
      _this.img = require("../../../../images/Synthesis/icon-NoData.png");
      _this.noData='noData';
    } else if (_this.menuLeft1 == "menuDeaDolour") {
      _this.img = require("../../../../images/Synthesis/icon-NoData1.png");
      _this.noData='noData1';
    }
  },
  methods: {
    
  },
};
</script>

<style lang="scss" scoped>
.EMR {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  .noData {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    left: 50%;
    z-index: 10;
    img {
      width: 75px;
      height: 95px;
    }
    span {
      font-size: 16px;
      color: #0078b6;
      line-height: 40px;
    }
  }
  .noData1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    left: 50%;
    z-index: 10;
    img {
      width: 75px;
      height: 95px;
    }
    span {
      font-size: 16px;
      color: #73777a;
      line-height: 40px;
    }
  }
  .content {
    position: absolute;
    width: 90%;
    min-height: 700px;
    top: 30px;
    left: 30px;
    background: #fff;
    border-radius: 8px;
    .title_ {
      width: 100%;
      height: 50px;
      display: flex;
      align-items: center;
      border-bottom: 1px #ddd solid;
      span {
        margin-left: 30px;
        font-size: 16px;
        font-weight: bold;
      }
    }
    .EMRContent {
      width: 70%;
      height: 100%;
      display: flex;
      flex-wrap: wrap;
      div {
        width: 50%;
        padding: 20px 50px;
        display: flex;
        span {
          width: 30%;
          display: flex;
          font-size: 16px;
        }
        .content_ {
          width: 70%;
        }
      }
    }
  }
}
</style>

<style>
</style>